package com.peas.platform.module.icims.base.auth.controller.vo;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("权限")
public class PermissionVo extends BaseVo {

    //0:菜单、1:按钮、2:输入组件、3：数据列
    @ApiModelProperty(value = "权限类型")
    @Size(max = 20, message = "权限类型不能超过20个字符")
    private String permissionType;

    @ApiModelProperty(value = "权限编码")
    @Size(max = 50, message = "权限编码不能超过50个字符")
    private String permissionCode;

    @ApiModelProperty(value = "权限名称")
    @Size(max = 200, message = "权限名称不能超过200个字符")
    private String permissionName;

    @ApiModelProperty(value = "状态")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @ApiModelProperty(value = "链接")
    @Size(max = 200, message = "链接不能超过200个字符")
    private String url;

    //（权限表）外键
    @ApiModelProperty(value = "上级权限ID")
    private Long parentId;

}
